%define commit 8d524081cb278bbe880e482d843689e431d7b98e
%define commit_short %(echo %{commit} | head -c6)

Summary(ru_RU.UTF-8): Оформление KDE Plasma 5 для МОСТех
Summary:	KDE Plasma 5 themes for MOSTech
Name:		plasma5-look-and-feel-mostech
Version:	0
Release:	9.git%{commit_short}.3
License:	GPL-2.0+
Group:		Graphical desktop/KDE
Url:		https://hub.mos.ru
Source0:	https://hub.mos.ru/mos/src/kde/%{name}/-/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildArch:	noarch
BuildRequires:	cmake
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5plasma-devel
BuildRequires:	mos-icons-core-classic
Requires:	mos-icons-core-classic
Requires:	plasma5-desktoptheme-mostech
Requires:	plasma5-color-scheme-mostech
# as in plasma5-look-and-feel-rosa-fresh
Provides:	plasma5-look-and-feel-default = %{EVRD}
# fake version lower than in real plasma5-look-and-feel-rosa-fresh
Provides:	plasma5-look-and-feel-rosa-fresh = 0.%{EVRD}

%description
%summary.

%description -l ru_RU.UTF-8
Оформление KDE Plasma 5 для МОСТех

%files
%{_kde5_datadir}/plasma/look-and-feel/ru.mostech.os.light.desktop
%{_kde5_datadir}/plasma/look-and-feel/ru.mostech.os.dark.desktop
%{_kde5_datadir}/kservices5/plasma-lookandfeel-ru.mostech.os.dark.desktop.desktop
%{_kde5_datadir}/kservices5/plasma-lookandfeel-ru.mostech.os.light.desktop.desktop
%{_metainfodir}/ru.mostech.os.dark.desktop.appdata.xml
%{_metainfodir}/ru.mostech.os.light.desktop.appdata.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
